import { PageType } from '../../Common/Entitys';
import { Wx_Page } from '../EntityBase';
import { Config } from '../../Config';

export class AgreementBasePage extends Wx_Page {
    public IndexPageType: PageType = PageType.AppIndex;

    // public data = {

    // }
    // /**
    //  * 初始化页面信息
    //  * 
    //  * @memberof indexPage
    //  */
    // async InitData(options) {

    // }

    async onGetUserInfo(e) {
        this.App.ModuleManager.AuthManager.TYLoginUrl = Config.TYLogin;
        await this.App.ModuleManager.Init();
        wx.switchTab({ url: this.IndexPageType });
    }

    async Colse(e) {
        wx.navigateBack({ delta: 10 });
    }
}
